package org.njjnox.depInjection;

import java.util.List;


public class Triangle implements Shape{

	private List<Point> points;

	public List<Point> getPoints() {
		return points;
	}

	public void setPoints(List<Point> points) {
		this.points = points;
	}

	public void draw() {

		for (Point point : points) {
			System.out.println("Point (" + point.getX() + "," + point.getY()
					+ ")");
		}

	}
	/*This methods will work when->>>> public class Triangle implements InitializingBean, DisposableBean { 
	 * ----------------------------------------
	public void afterPropertiesSet() throws Exception {
		System.out.println("InitializingBean init method call for Triangle");

	}

	public void destroy() throws Exception {
		System.out.println("DisposableBean called for Triangle");

	}
	--------------------------------------------*/
	
	public void myInit(){
		System.out.println("myInit init method call for Triangle");
	}
	public void cleanUp(){
		System.out.println("clenUp method called for Triangle");
	}
}
